xen/arm: Set nr_cpu_ids to available number of cpus
authorVijaya Kumar K <Vijaya.Kumar@caviumnetworks.com>
Mon, 1 Feb 2016 09:26:13 +0000 (14:56 +0530)
committerStefano Stabellini <sstabellini@kernel.org>
Thu, 16 Mar 2017 20:59:21 +0000 (13:59 -0700)
nr_cpu_ids for arm platforms is incorrectly set to NR_CPUS
irrespective of the number of cpus supported by platform.

Signed-off-by: Vijaya Kumar K <Vijaya.Kumar@caviumnetworks.com>
Reviewed-by: Julien Grall <julien.grall@citrix.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/setup.c

index 38eb888c0be523711b8223a36c09d53137e589b0..861c39e666a61192e09cb5ca3b7eee6bb9fad815 100644 (file)
@@ -784,6 +784,8 @@ void __init start_xen(unsigned long boot_phys_offset,
 
     smp_init_cpus();
     cpus = smp_get_max_cpus();
+    printk(XENLOG_INFO "SMP: Allowing %u CPUs\n", cpus);
+    nr_cpu_ids = cpus;
 
     init_xen_time();